<template>
    <div>
        <div v-for="(value, name) in stu" :key="name">
            属性名：{{ name }} --- 属性值：{{ value }}
        </div>
    </div>
</template>

<script setup>
    import { reactive } from 'vue';
    const stu = reactive({ id: 22133129, name: '老邵', gender: '男', age: 20})
</script>